Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserved EVM state relation #10

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Preserved EVM state relation #10

wants to merge 7 commits into from

Conversation

jkopanski
Copy link
Collaborator

No description provided.

@jkopanski jkopanski marked this pull request as ready for review October 4, 2024 11:44
@jkopanski jkopanski requested a review from Ferinko October 4, 2024 11:44
Copy link
Collaborator

@Julek Julek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

Clear/Wheels.lean Outdated Show resolved Hide resolved
Clear/Wheels.lean Outdated Show resolved Hide resolved
@@ -82,4 +82,48 @@ lemma evm_eq_symm_of_isPure_ok_ok {evm evm'} {vs vs'} (h : isPure (Ok evm vs) (O
symm
aesop_spec

def preservesEvm (s₀ : State) (s₁ : State) : Prop :=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this predicate should also compare evm states in the case where the second state is a Checkpoint no? 🙂

@jkopanski jkopanski requested a review from Julek October 8, 2024 10:50
rw [preserved_def] at h
exact h.2.2.1

def mono_keccak_map {evm evm' : EVMState} (h : preserved evm evm') :
Copy link
Collaborator

@Ferinko Ferinko Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a projection function, it's not a monotonicity statement. It says that you can take out the last component of and.

The thing that you will need at some point is stuff like: insert is monotonic in its second argument given the preorder on your maps, i.e.:
m1 <= m2 -> insert x m1 <= insert x m2.

@jkopanski jkopanski requested a review from Ferinko October 8, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants